import { getStyle } from '@/utils/dom'

export default {
  root: '.admin-container',
  elements: [
    '.admin-container .el-breadcrumb',
    '.admin-container .search-wrap',
    '.admin-container .page-block',
  ],
  otherFunc: () => {
    const mainPaddingBottom = parseFloat(
      getStyle('.admin-container .common-container')?.paddingBottom || 0
    )

    const tablewrapPaddingTop = parseFloat(
      getStyle('.admin-container .table-wrap')?.paddingTop || 0
    )
    const tablewrapPaddingtBottom = parseFloat(
      getStyle('.admin-container .table-wrap')?.paddingBottom || 0
    )
    console.log(mainPaddingBottom, tablewrapPaddingTop, tablewrapPaddingtBottom)
    return mainPaddingBottom + tablewrapPaddingTop + tablewrapPaddingtBottom
  },
}
